package com.sixth.controller.api;

import com.sixth.entity.User;
import com.sixth.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: self-tui-education
 * @description:
 * @author: 高振杨
 * @create: 2022-04-14 17:30
 **/
@RestController
@RequestMapping("/system/api/user")
public class ApiUserController {

    @Autowired
    private UserService userService;
    @PostMapping("findByUsername")
    public User findByUsername(@RequestParam String username){
        return userService.findByUsername(username);
    }
}
